<?php
include("../sesiune.php");

$id = $_POST['edit'];
$numeProd = $_POST['numeProd'];
$detalii = $_POST['detalii'];
$pret = $_POST['pret'];


$queryUpdate = "UPDATE produse SET  numeProd = '".escInjection($numeProd)."',detalii='".escInjection($detalii)."', pret='".escInjection($pret)."' WHERE ID = $id";

$runQuery = mysql_query ($queryUpdate, getConnection()) or die (mysql_error());

header('Location: editProd.php');
?>
